<!--

     Licensed to the Apache Software Foundation (ASF) under one
     or more contributor license agreements.  See the NOTICE file
     distributed with this work for additional information
     regarding copyright ownership.  The ASF licenses this file
     to you under the Apache License, Version 2.0 (the
     "License"); you may not use this file except in compliance
     with the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing,
     software distributed under the License is distributed on an
     "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
     KIND, either express or implied.  See the License for the
     specific language governing permissions and limitations
     under the License.

-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- **************************************************************** -->
<!-- *  PLEASE KEEP COMPLICATED EXPRESSIONS OUT OF THESE TEMPLATES, * -->
<!-- *  i.e. only iterate & print data where possible. Thanks, Jez. * -->
<!-- **************************************************************** -->

<html>
<head>
    <!-- Generated by groovydoc (2.4.7) on Thu Dec 01 22:36:10 PST 2016 -->
    <title>EdiHandler (Moqui Framework 2.0.0)</title>
    <meta name="date" content="2016-12-01">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link href="../../../../groovy.ico" type="image/x-icon" rel="shortcut icon">
    <link href="../../../../groovy.ico" type="image/x-icon" rel="icon">
    <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">

<body class="center">
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
    parent.document.title="EdiHandler (Moqui Framework 2.0.0)";
}
//-->
</script>
<noscript>
    <div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
    <!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
    <!--   -->
</a>
    <ul class="navList" title="Navigation">
        <li><a href="../../../../overview-summary.html">Overview</a></li>
        <li><a href="package-summary.html">Package</a></li>
        <li class="navBarCell1Rev">Class</li>
        <li><a href="../../../../deprecated-list.html">Deprecated</a></li>
        <li><a href="../../../../index-all.html">Index</a></li>
        <li><a href="../../../../help-doc.html">Help</a></li>
    </ul>
</div>

<div class="subNav">
    <div>
        <ul class="navList">
            <li><a href="../../../../index.html?org/moqui/impl/util/EdiHandler" target="_top">Frames</a></li>
            <li><a href="EdiHandler.html" target="_top">No Frames</a></li>
        </ul>
    </div>
    <div>
        <ul class="subNavList">
            <li>Summary:&nbsp;</li>
            <li><a href="#nested_summary">Nested</a></li>&nbsp;&nbsp;&nbsp;<li><a href="#field_summary">Field</a></li>&nbsp;&nbsp;&nbsp;<li><a href="#property_summary">Property</a></li>&nbsp;&nbsp;&nbsp;<li><a href="#constructor_summary">Constructor</a></li>&nbsp;&nbsp;&nbsp;<li><a href="#method_summary">Method</a></li>&nbsp;&nbsp;&nbsp;
        </ul>
        <ul class="subNavList">
            <li>&nbsp;|&nbsp;Detail:&nbsp;</li>
            <li><a href="#field_detail">Field</a></li>&nbsp;&nbsp;&nbsp;<li><a href="#prop_detail">Property</a></li>&nbsp;&nbsp;&nbsp;<li><a href="#constructor_detail">Constructor</a></li>&nbsp;&nbsp;&nbsp;<li><a href="#method_detail">Method</a></li>&nbsp;&nbsp;&nbsp;
        </ul>
    </div>
    <a name="skip-navbar_top">
        <!--   -->
    </a></div>
<!-- ========= END OF TOP NAVBAR ========= -->

<!-- ======== START OF CLASS DATA ======== -->
<div class="header">

    <div class="subTitle">Package: <strong>org.moqui.impl.util</strong></div>

    <h2 title="[Groovy] Class EdiHandler" class="title">[Groovy] Class EdiHandler</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><ul class="inheritance"></ul></li><li>org.moqui.impl.util.EdiHandler
</ul>
<div class="description">
    <ul class="blockList">
        <li class="blockList">



          </li>
    </ul>
</div>

<div class="summary">
    <ul class="blockList">
        <li class="blockList">
        <!-- =========== NESTED CLASS SUMMARY =========== -->
        
            <ul class="blockList">
                <li class="blockList"><a name="nested_summary"><!--   --></a>
                    <h3>Nested Class Summary</h3>
                    <ul class="blockList">
                    <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
                        <caption><span>Nested classes</span><span class="tabEnd">&nbsp;</span></caption>
                        <tr>
                            <th class="colFirst" scope="col">Modifiers</th>
                            <th class="colLast" scope="col">Name</th>
                            <th class="colLast" scope="col">Description</th>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><strong>static&nbsp;class</strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href='../../../../org/moqui/impl/util/EdiHandler.ElementError.html'>EdiHandler.ElementError</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><strong>static&nbsp;enum</strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href='../../../../org/moqui/impl/util/EdiHandler.ElementErrorType.html'>EdiHandler.ElementErrorType</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><strong>static&nbsp;class</strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href='../../../../org/moqui/impl/util/EdiHandler.SegmentError.html'>EdiHandler.SegmentError</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><strong>static&nbsp;enum</strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href='../../../../org/moqui/impl/util/EdiHandler.SegmentErrorType.html'>EdiHandler.SegmentErrorType</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                    </table>
                   </ul>
                </li>
            </ul>
        

        <!-- =========== ENUM CONSTANT SUMMARY =========== -->
        
        <!-- =========== FIELD SUMMARY =========== -->
        
            <ul class="blockList">
                <li class="blockList"><a name="field_summary"><!--   --></a>
                    <h3>Field Summary</h3>
                    <ul class="blockList">
                    <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Enum constants summary table">
                        <caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
                        <tr>
                            <th class="colFirst" scope="col">Modifiers</th>
                            <th class="colLast" scope="col">Name</th>
                            <th class="colLast" scope="col">Description</th>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><strong>protected&nbsp;java.util.List&lt;java.util.Map&lt;java.lang.String, java.lang.Object&gt;&gt;</strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#body">body</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><strong>protected&nbsp;java.lang.String</strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#bodyRootId">bodyRootId</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><strong>protected&nbsp;<a href='../../../../org/moqui/context/ExecutionContext.html'>ExecutionContext</a></strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#ec">ec</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><strong>protected&nbsp;java.util.List&lt;java.util.Map&lt;java.lang.String, java.lang.Object&gt;&gt;</strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#envelope">envelope</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><strong>protected&nbsp;java.util.Set&lt;java.lang.String&gt;</strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#knownSegmentIds">knownSegmentIds</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><strong>protected&nbsp;static&nbsp;org.slf4j.Logger</strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#logger">logger</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><strong>protected&nbsp;java.util.List&lt;SegmentError&gt;</strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#segmentErrors">segmentErrors</a></code></td>
                            <td class="colLast"></code></td>
                        </tr>
                        
                    </table>
                   </ul>
                </li>
                
            </ul>
        

        <!-- =========== PROPERTY SUMMARY =========== -->
        
         <ul class="blockList">
                <li class="blockList"><a name="property_summary"><!--   --></a>
                    <h3>Properties Summary</h3>
                    <ul class="blockList">
                    <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Properties Summary table, listing nested classes, and an explanation">
                        <caption><span>Properties</span><span class="tabEnd">&nbsp;</span></caption>
                        <tr>
                            <th class="colFirst" scope="col">Type</th>
                            <th class="colLast" scope="col">Name and description</th>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><strong>java.lang.Character</strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#componentDelimiter">componentDelimiter</a></code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><strong>static&nbsp;java.util.Map&lt;ElementErrorType, java.lang.String&gt;</strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#elementErrorX12Codes">elementErrorX12Codes</a></code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><strong>java.lang.Character</strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#elementSeparator">elementSeparator</a></code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><strong>char</strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#escapeCharacter">escapeCharacter</a></code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><strong>java.util.Set&lt;java.lang.String&gt;</strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#noEscapeSegments">noEscapeSegments</a></code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><strong>char</strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#paddingChar">paddingChar</a></code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><strong>java.util.Map&lt;java.lang.String, java.util.List&lt;java.lang.Integer&gt;&gt;</strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#segmentElementSizes">segmentElementSizes</a></code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><strong>static&nbsp;java.util.Map&lt;SegmentErrorType, java.lang.String&gt;</strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#segmentErrorX12Codes">segmentErrorX12Codes</a></code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><strong>java.lang.Character</strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#segmentSuffix">segmentSuffix</a></code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><strong>java.lang.Character</strong></code>&nbsp;</td>
                            <td class="colLast"><code><a href="#segmentTerminator">segmentTerminator</a></code><br></td>
                        </tr>
                        
                    </table>
                   </ul>
                </li>
            </ul>
        

        <!-- =========== ELEMENT SUMMARY =========== -->
        

        
        <!-- ======== CONSTRUCTOR SUMMARY ======== -->
        <ul class="blockList">
                <li class="blockList"><a name="constructor_summary"><!--   --></a>
                    <h3>Constructor Summary</h3>
                    <ul class="blockList">
                    <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructors Summary table">
                        <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
                        <tr>
                            <th class="colFirst" scope="col">Constructor and description</th>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst">
                                <code><a href="#EdiHandler(org.moqui.context.ExecutionContext)">EdiHandler</a></strong>
                                (<a href='../../../../org/moqui/context/ExecutionContext.html'>ExecutionContext</a> ec)</code><br></td>
                        </tr>
                        
                    </table>
                   </ul>
              </li>
        </ul>
        

        
        <!-- ========== METHOD SUMMARY =========== -->
        <ul class="blockList">
            
            <li class="blockList"><a name="method_summary"><!--   --></a>
                    <h3>Methods Summary</h3>
                    <ul class="blockList">
                    <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Methods Summary table">
                        <caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
                        <tr>
                            <th class="colFirst" scope="col">Type</th>
                            <th class="colLast" scope="col">Name and description</th>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>java.lang.String</strong></code></td>
                            <td class="colLast"><code><strong><a href="#combineSegments(ArrayList<String>)">combineSegments</a></strong>(java.util.ArrayList&lt;java.lang.String&gt; segmentStringList)</code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>int</strong></code></td>
                            <td class="colLast"><code><strong><a href="#countSegments(Map<String, List<Object>>)">countSegments</a></strong>(java.util.Map&lt;java.lang.String, java.util.List&lt;java.lang.Object&gt;&gt; ediMap)</code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>protected&nbsp;void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#determineSeparators(java.lang.String)">determineSeparators</a></strong>(java.lang.String ediText)</code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>protected&nbsp;java.lang.String</strong></code></td>
                            <td class="colLast"><code><strong><a href="#escape(java.lang.String)">escape</a></strong>(java.lang.String original)</code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>protected&nbsp;void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#extractSegmentIds(List<Map<String, Object>>)">extractSegmentIds</a></strong>(java.util.List&lt;java.util.Map&lt;java.lang.String, java.lang.Object&gt;&gt; defList)</code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>protected&nbsp;void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#generateSegment(Map<String, List<Object>>, java.lang.StringBuilder)">generateSegment</a></strong>(java.util.Map&lt;java.lang.String, java.util.List&lt;java.lang.Object&gt;&gt; segmentMap, java.lang.StringBuilder sb)</code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>java.lang.String</strong></code></td>
                            <td class="colLast"><code><strong><a href="#generateText(Map<String, List<Object>>)">generateText</a></strong>(java.util.Map&lt;java.lang.String, java.util.List&lt;java.lang.Object&gt;&gt; rootMap)</code><br>Generate EDI text from the same Map/List structure created from the parse.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>protected&nbsp;java.lang.String</strong></code></td>
                            <td class="colLast"><code><strong><a href="#getComponentRegex()">getComponentRegex</a></strong>()</code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>protected&nbsp;java.lang.String</strong></code></td>
                            <td class="colLast"><code><strong><a href="#getElementRegex()">getElementRegex</a></strong>()</code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>protected&nbsp;java.util.ArrayList&lt;java.lang.Object&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#getSegmentElements(java.lang.String)">getSegmentElements</a></strong>(java.lang.String segmentString)</code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>java.util.List&lt;SegmentError&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#getSegmentErrors()">getSegmentErrors</a></strong>()</code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>protected&nbsp;java.lang.String</strong></code></td>
                            <td class="colLast"><code><strong><a href="#getSegmentId(java.lang.String)">getSegmentId</a></strong>(java.lang.String segmentString)</code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>protected&nbsp;java.lang.String</strong></code></td>
                            <td class="colLast"><code><strong><a href="#getSegmentRegex()">getSegmentRegex</a></strong>()</code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='../../../../org/moqui/impl/util/EdiHandler.html'>EdiHandler</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#loadBody(java.lang.String)">loadBody</a></strong>(java.lang.String location)</code><br>Run a Groovy script at location to get the nested List/Map file structure. </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='../../../../org/moqui/impl/util/EdiHandler.html'>EdiHandler</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#loadEnvelope(java.lang.String)">loadEnvelope</a></strong>(java.lang.String location)</code><br>Run a Groovy script at location to get the nested List/Map file envelope structure (for X12: ISA, GS, and ST
 segments). </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>protected&nbsp;boolean</strong></code></td>
                            <td class="colLast"><code><strong><a href="#needsEscape(char)">needsEscape</a></strong>(char c)</code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>protected&nbsp;int</strong></code></td>
                            <td class="colLast"><code><strong><a href="#parseSegment(List<String>, int, Map<String, List<Object>>, Map<String, Object>)">parseSegment</a></strong>(java.util.List&lt;java.lang.String&gt; allSegmentStringList, int segmentIndex, java.util.Map&lt;java.lang.String, java.util.List&lt;java.lang.Object&gt;&gt; currentSegment, java.util.Map&lt;java.lang.String, java.lang.Object&gt; curDefMap)</code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>protected&nbsp;int</strong></code></td>
                            <td class="colLast"><code><strong><a href="#parseSegments(List<String>, int, Map<String, List<Object>>, List<Map<String, Object>>)">parseSegments</a></strong>(java.util.List&lt;java.lang.String&gt; allSegmentStringList, int segmentIndex, java.util.Map&lt;java.lang.String, java.util.List&lt;java.lang.Object&gt;&gt; currentSegment, java.util.List&lt;java.util.Map&lt;java.lang.String, java.lang.Object&gt;&gt; levelDefList)</code><br>Internal recursive method for parsing segments</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>java.util.Map&lt;java.lang.String, java.util.List&lt;java.lang.Object&gt;&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#parseText(java.lang.String)">parseText</a></strong>(java.lang.String ediText)</code><br>Parse EDI text and return a Map containing a "elements" entry with a List of element values (each may be a String
 or List<String>) and an entry for each child segment where the key is the segment ID (generally 2 or 3 characters)
 and the value is a List<Map> where each Map has this same Map structure.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='../../../../org/moqui/impl/util/EdiHandler.html'>EdiHandler</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#setChars(java.lang.Character, java.lang.Character, java.lang.Character, java.lang.Character)">setChars</a></strong>(java.lang.Character segmentTerminator, java.lang.Character elementSeparator, java.lang.Character componentDelimiter, java.lang.Character escapeCharacter)</code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='../../../../org/moqui/impl/util/EdiHandler.html'>EdiHandler</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#setEdifactDefaultChars()">setEdifactDefaultChars</a></strong>()</code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='../../../../org/moqui/impl/util/EdiHandler.html'>EdiHandler</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#setITradeDefaultChars()">setITradeDefaultChars</a></strong>()</code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code><a href='../../../../org/moqui/impl/util/EdiHandler.html'>EdiHandler</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#setX12DefaultChars()">setX12DefaultChars</a></strong>()</code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>java.util.List&lt;java.lang.String&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#splitMessage(java.lang.String, java.lang.String, java.lang.String)">splitMessage</a></strong>(java.lang.String rootHeaderId, java.lang.String rootTrailerId, java.lang.String ediText)</code><br></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>protected&nbsp;java.lang.String</strong></code></td>
                            <td class="colLast"><code><strong><a href="#unescape(java.lang.String)">unescape</a></strong>(java.lang.String original)</code><br></td>
                        </tr>
                        
                    </table>
                   </ul>
              </li>
            
            <li class="blockList"><a name="method_summary"><!--   --></a>
                    <h3>Inherited Methods Summary</h3>
                    <ul class="blockList">
                    <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Inherited Methods Summary table">
                        <caption><span>Inherited Methods</span><span class="tabEnd">&nbsp;</span></caption>
                        <tr>
                            <th class="colFirst" scope="col">Methods inherited from class</th>
                            <th class="colLast" scope="col">Name</th>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>class java.lang.Object</strong></code></td>
                            <td class="colLast"><code>java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()</code></td>
                        </tr>
                    </table>
                   </ul>
              </li>
                
        </ul>
        
    </li>
    </ul>
</div>

<div class="details">
    <ul class="blockList">
        <li class="blockList">
           

            
            <!-- =========== FIELD DETAIL =========== -->
            <ul class="blockList">
                <li class="blockList"><a name="field_detail">
                    <!--   -->
                </a>
                    <h3>Field Detail</h3>
                    
                        <a name="body"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;java.util.List&lt;java.util.Map&lt;java.lang.String, java.lang.Object&gt;&gt; <strong>body</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="bodyRootId"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;java.lang.String <strong>bodyRootId</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="ec"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;<a href='../../../../org/moqui/context/ExecutionContext.html'>ExecutionContext</a> <strong>ec</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="envelope"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;java.util.List&lt;java.util.Map&lt;java.lang.String, java.lang.Object&gt;&gt; <strong>envelope</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="knownSegmentIds"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;java.util.Set&lt;java.lang.String&gt; <strong>knownSegmentIds</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="logger"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;static&nbsp;final&nbsp;org.slf4j.Logger <strong>logger</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="segmentErrors"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;java.util.List&lt;SegmentError&gt; <strong>segmentErrors</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                </li>
            </ul>
            

            
            <!-- =========== PROPERTY DETAIL =========== -->
            <ul class="blockList">
                <li class="blockList"><a name="prop_detail">
                    <!--   -->
                </a>
                    <h3>Property Detail</h3>
                    
                        <a name="componentDelimiter"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>java.lang.Character <strong>componentDelimiter</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="elementErrorX12Codes"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>static&nbsp;java.util.Map&lt;ElementErrorType, java.lang.String&gt; <strong>elementErrorX12Codes</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="elementSeparator"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>java.lang.Character <strong>elementSeparator</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="escapeCharacter"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>char <strong>escapeCharacter</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="noEscapeSegments"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>java.util.Set&lt;java.lang.String&gt; <strong>noEscapeSegments</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="paddingChar"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>char <strong>paddingChar</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="segmentElementSizes"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>java.util.Map&lt;java.lang.String, java.util.List&lt;java.lang.Integer&gt;&gt; <strong>segmentElementSizes</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="segmentErrorX12Codes"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>static&nbsp;java.util.Map&lt;SegmentErrorType, java.lang.String&gt; <strong>segmentErrorX12Codes</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="segmentSuffix"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>java.lang.Character <strong>segmentSuffix</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="segmentTerminator"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>java.lang.Character <strong>segmentTerminator</strong></h4>
                                <p></p>
                            </li>
                        </ul>
                    
                </li>
            </ul>
            

            

            
            <!-- =========== CONSTRUCTOR DETAIL =========== -->
            <ul class="blockList">
                <li class="blockList"><a name="constructor_detail">
                    <!--   -->
                </a>
                    <h3>Constructor Detail</h3>
                    
                        <a name="EdiHandler(org.moqui.context.ExecutionContext)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4><strong>EdiHandler</strong>(<a href='../../../../org/moqui/context/ExecutionContext.html'>ExecutionContext</a> ec)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                </li>
            </ul>
            


            
            <!-- =========== METHOD DETAIL =========== -->
            <ul class="blockList">
                <li class="blockList"><a name="method_detail">
                    <!--   -->
                </a>
                    <h3>Method Detail</h3>
                    
                        <a name="combineSegments(ArrayList<String>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>java.lang.String <strong>combineSegments</strong>(java.util.ArrayList&lt;java.lang.String&gt; segmentStringList)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="countSegments(Map<String, List<Object>>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>int <strong>countSegments</strong>(java.util.Map&lt;java.lang.String, java.util.List&lt;java.lang.Object&gt;&gt; ediMap)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="determineSeparators(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;void <strong>determineSeparators</strong>(java.lang.String ediText)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="escape(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;java.lang.String <strong>escape</strong>(java.lang.String original)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="extractSegmentIds(List<Map<String, Object>>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;void <strong>extractSegmentIds</strong>(java.util.List&lt;java.util.Map&lt;java.lang.String, java.lang.Object&gt;&gt; defList)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="generateSegment(Map<String, List<Object>>, java.lang.StringBuilder)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;void <strong>generateSegment</strong>(java.util.Map&lt;java.lang.String, java.util.List&lt;java.lang.Object&gt;&gt; segmentMap, java.lang.StringBuilder sb)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="generateText(Map<String, List<Object>>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>java.lang.String <strong>generateText</strong>(java.util.Map&lt;java.lang.String, java.util.List&lt;java.lang.Object&gt;&gt; rootMap)</h4>
                                <p> Generate EDI text from the same Map/List structure created from the parse. </p>
                            </li>
                        </ul>
                    
                        <a name="getComponentRegex()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;java.lang.String <strong>getComponentRegex</strong>()</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="getElementRegex()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;java.lang.String <strong>getElementRegex</strong>()</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="getSegmentElements(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;java.util.ArrayList&lt;java.lang.Object&gt; <strong>getSegmentElements</strong>(java.lang.String segmentString)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="getSegmentErrors()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>java.util.List&lt;SegmentError&gt; <strong>getSegmentErrors</strong>()</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="getSegmentId(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;java.lang.String <strong>getSegmentId</strong>(java.lang.String segmentString)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="getSegmentRegex()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;java.lang.String <strong>getSegmentRegex</strong>()</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="loadBody(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4><a href='../../../../org/moqui/impl/util/EdiHandler.html'>EdiHandler</a> <strong>loadBody</strong>(java.lang.String location)</h4>
                                <p> Run a Groovy script at location to get the nested List/Map file structure. The segment(s) in the top-level List
 should be referenced in the envelope structure, ie this structure will be used under the envelope structure.

 These are based on Bots Grammars (http://sourceforge.net/projects/bots/files/grammars/), converted from Python to
 Groovy List/Map syntax (search/replace '{' to '[' and '}' to ']'), only include the structure List (script should
 evaluate to or return just the structure List).
     </p>
                            </li>
                        </ul>
                    
                        <a name="loadEnvelope(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4><a href='../../../../org/moqui/impl/util/EdiHandler.html'>EdiHandler</a> <strong>loadEnvelope</strong>(java.lang.String location)</h4>
                                <p> Run a Groovy script at location to get the nested List/Map file envelope structure (for X12: ISA, GS, and ST
 segments). The QUERIES and SUBTRANSLATION entries can be removed, will be ignored.

 These are based on Bots Grammars (http://sourceforge.net/projects/bots/files/grammars/), converted from Python to
 Groovy List/Map syntax (search/replace '{' to '[' and '}' to ']'), only include the structure List (script should
 evaluate to or return just the structure List).
     </p>
                            </li>
                        </ul>
                    
                        <a name="needsEscape(char)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;boolean <strong>needsEscape</strong>(char c)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="parseSegment(List<String>, int, Map<String, List<Object>>, Map<String, Object>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;int <strong>parseSegment</strong>(java.util.List&lt;java.lang.String&gt; allSegmentStringList, int segmentIndex, java.util.Map&lt;java.lang.String, java.util.List&lt;java.lang.Object&gt;&gt; currentSegment, java.util.Map&lt;java.lang.String, java.lang.Object&gt; curDefMap)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="parseSegments(List<String>, int, Map<String, List<Object>>, List<Map<String, Object>>)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;int <strong>parseSegments</strong>(java.util.List&lt;java.lang.String&gt; allSegmentStringList, int segmentIndex, java.util.Map&lt;java.lang.String, java.util.List&lt;java.lang.Object&gt;&gt; currentSegment, java.util.List&lt;java.util.Map&lt;java.lang.String, java.lang.Object&gt;&gt; levelDefList)</h4>
                                <p> Internal recursive method for parsing segments </p>
                            </li>
                        </ul>
                    
                        <a name="parseText(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>java.util.Map&lt;java.lang.String, java.util.List&lt;java.lang.Object&gt;&gt; <strong>parseText</strong>(java.lang.String ediText)</h4>
                                <p> Parse EDI text and return a Map containing a "elements" entry with a List of element values (each may be a String
 or List<String>) and an entry for each child segment where the key is the segment ID (generally 2 or 3 characters)
 and the value is a List<Map> where each Map has this same Map structure.

 If no definition is found for a segment, all text the segment (in original form) is put in the "originalList"
 (of type List<String>) entry. This is used for partial parsing (envelope only) and then completing the parse with
 the body structure loaded.
     </p>
                            </li>
                        </ul>
                    
                        <a name="setChars(java.lang.Character, java.lang.Character, java.lang.Character, java.lang.Character)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4><a href='../../../../org/moqui/impl/util/EdiHandler.html'>EdiHandler</a> <strong>setChars</strong>(java.lang.Character segmentTerminator, java.lang.Character elementSeparator, java.lang.Character componentDelimiter, java.lang.Character escapeCharacter)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="setEdifactDefaultChars()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4><a href='../../../../org/moqui/impl/util/EdiHandler.html'>EdiHandler</a> <strong>setEdifactDefaultChars</strong>()</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="setITradeDefaultChars()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4><a href='../../../../org/moqui/impl/util/EdiHandler.html'>EdiHandler</a> <strong>setITradeDefaultChars</strong>()</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="setX12DefaultChars()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4><a href='../../../../org/moqui/impl/util/EdiHandler.html'>EdiHandler</a> <strong>setX12DefaultChars</strong>()</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="splitMessage(java.lang.String, java.lang.String, java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>java.util.List&lt;java.lang.String&gt; <strong>splitMessage</strong>(java.lang.String rootHeaderId, java.lang.String rootTrailerId, java.lang.String ediText)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="unescape(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>protected&nbsp;java.lang.String <strong>unescape</strong>(java.lang.String original)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                </li>
            </ul>
            
        </li>
    </ul>
</div>

<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
    <!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
    <!--   -->
</a>
    <ul class="navList" title="Navigation">
        <li><a href="../../../../overview-summary.html">Overview</a></li>
        <li><a href="package-summary.html">Package</a></li>
        <li class="navBarCell1Rev">Class</li>
        <li><a href="../../../../deprecated-list.html">Deprecated</a></li>
        <li><a href="../../../../index-all.html">Index</a></li>
        <li><a href="../../../../help-doc.html">Help</a></li>
    </ul>
</div>

<div class="subNav">
    <div>
        <ul class="navList">
            <li><a href="../../../../index.html?org/moqui/impl/util/EdiHandler" target="_top">Frames</a></li>
            <li><a href="EdiHandler.html" target="_top">No Frames</a></li>
        </ul>
    </div>
    <div>
        <ul class="subNavList">
            <li>Summary:&nbsp;</li>
            <li><a href="#nested_summary">Nested</a></li>&nbsp;&nbsp;&nbsp;<li><a href="#field_summary">Field</a></li>&nbsp;&nbsp;&nbsp;<li><a href="#property_summary">Property</a></li>&nbsp;&nbsp;&nbsp;<li><a href="#constructor_summary">Constructor</a></li>&nbsp;&nbsp;&nbsp;<li><a href="#method_summary">Method</a></li>&nbsp;&nbsp;&nbsp;
        </ul>
        <ul class="subNavList">
            <li>&nbsp;|&nbsp;Detail:&nbsp;</li>
            <li><a href="#field_detail">Field</a></li>&nbsp;&nbsp;&nbsp;<li><a href="#prop_detail">Property</a></li>&nbsp;&nbsp;&nbsp;<li><a href="#constructor_detail">Constructor</a></li>&nbsp;&nbsp;&nbsp;<li><a href="#method_detail">Method</a></li>&nbsp;&nbsp;&nbsp;
        </ul>
    </div>
    <p>Groovy Documentation</p>
    <a name="skip-navbar_bottom">
        <!--   -->
    </a>
    </div>
</div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
